$OpenBSD: patch-yeahlaunch_c,v 1.1.1.1 2007/06/04 16:39:54 ajacoutot Exp $
--- yeahlaunch.c.orig	Mon Jun  4 17:44:48 2007
+++ yeahlaunch.c	Mon Jun  4 17:44:55 2007
@@ -104,6 +104,10 @@ int main(int argc, char *argv[])
 
     }
     font = XLoadQueryFont(dpy, opt_font);
+    if (font == NULL) {
+     fprintf(stderr, "Font does not exist! exiting...\n");
+     exit(1);
+     }
     height = font-> /* max_bounds. */ ascent + font-> /* max_bounds. */ descent + 3;
     XAllocNamedColor(dpy, DefaultColormap(dpy, screen), opt_fg, &fg, &dummy);
     XAllocNamedColor(dpy, DefaultColormap(dpy, screen), opt_afg, &afg, &dummy);
